HEADER GOES HERE

View A Thread
<?php
include('settings.php');
//lets figure out some stuff about this thread
	$con = mysql_connect(localhost,$sqluser,$sqlpass);
	@mysql_select_db($sqldbase) or die( "Unable to select database");
	$query = "select * from threads where threadid='$thread';";
	$response = mysql_query($query,$con);
	$threadtitle = mysql_result($ressponse,0,"title");
	$query = "select * from posts where threadid='$thread';";
	$response = mysql_query($query,$con);
	mysql_close($con);
	echo("<table><tr><th>$threadtitle</th></tr>");
	$num=mysql_numrows($response);
	$i=0;
	while ($i < $num) {
	$msg = mysql_result($response,i,"content");
	echo("<tr><td>$msg</td></tr>");

	$i++;
	}
	echo("</table>");
}

Footer Goes Here
